/**
 * Project Name:cnsy-url-short-service
 * File Name:DateUtil.java
 * Package Name:cn.cnsy123.shorturls.business.util 
 * Date: 2020年4月21日-下午11:48:57
 * Copyright (c) 2020, yangpengfei@360@126.com All Rights Reserved. 
 *
 */

package cn.cnsy123.shorturls.business.util;

import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

import org.apache.commons.lang3.time.FastDateFormat;

/**
 * ClassName: DateUtil
 * 
 * @author yangpengfei
 * @date 2020年4月21日-下午11:48:57
 * @version 1.0
 * @since JDK 1.7
 */
public class DateUtil {
    
    public static final String getNowTime() {
        return FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss",TimeZone.getTimeZone("GMT+08:00"),Locale.SIMPLIFIED_CHINESE).format(new Date(System.currentTimeMillis()));
    }

}
